package com.sxl.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sxl.domain.Modules;
import com.sxl.domain.Users;
import com.sxl.service.UsersService;
import com.sxl.mapper.UsersMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author xue
* @description 针对表【users】的数据库操作Service实现
* @createDate 2022-04-16 10:35:12
*/
@Service
public class UsersServiceImpl extends ServiceImpl<UsersMapper, Users>
    implements UsersService{
    @Autowired
    private UsersMapper usersMapper;

    @Override
    public List<Users> selectAll(Users users) {
        return usersMapper.selectAll(users);
    }

    @Override
    public int getCount(Users users) {
        return usersMapper.getCount(users);
    }

    @Override
    public int updatePsdwrongTimeById(Integer id) {
        return usersMapper.updatePsdwrongTimeById(id);
    }

    @Override
    public List<Modules> getPermission(String loginName, String password) {
        return usersMapper.getPermission(loginName,password);
    }


}




